-
Notifications
You must be signed in to change notification settings - Fork 164
Bump typelit plugins #3061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Bump typelit plugins #3061
Conversation
|
Could you also locally run a check with |
Every build is currently failing due to warnings caused by clash-lang/ghc-typelits-natnormalise#105 (comment). I created another branch for just checking the changes to |
9934ba6 to
f526cab
Compare
f526cab to
865be36
Compare
|
I’m adding some features and fixes in clash-lang/ghc-typelits-natnormalise#110 which will hopefully only require haddock/doctest changes w.r.t. error messages for |
|
With the changes in clash-lang/ghc-typelits-natnormalise#110, the following is all that's needed to compile clash-prelude warning-free and pass the unit-tests and doctests: 9b4ca8a |
865be36 to
10d8484
Compare
I note you don't increase the lower bounds on the dependencies. So does it work with the whole range of versions in the interval then? I'm having trouble understanding how you fix a compilation error by merely allowing more versions of a dependency to be used... [edit] |
10d8484 to
7e907a9
Compare
That's great. Thanks. I'd wait a bit more to also include the next |
|
I have released a new version of |
18934e9 to
6a7dee1
Compare
|
Tests have been run with the latest plugin versions here (18934e9): |
|
There have been three separate comments discussing the need to exclude certain versions to not produce build plans that don't compile. These have not been addressed in any way. Could you please explain why, e.g., a compilation with |
|
Could you give some guidance on how to actually compile with a modern [edit] [edit 2] --- a/clash-prelude-hedgehog/clash-prelude-hedgehog.cabal
+++ b/clash-prelude-hedgehog/clash-prelude-hedgehog.cabal
@@ -49,7 +49,7 @@ library
Clash.Hedgehog.Sized.Vector
build-depends:
- ghc-typelits-knownnat >= 0.7.2 && < 0.8,
+ ghc-typelits-knownnat >= 0.7.2 && < 0.9,
ghc-typelits-natnormalise >= 0.7.2 && < 0.10,
text >= 1.2.2 && < 2.2,I get the sense that without that additional change, this PR is a no-op... did you verify that you could actually pick new versions of the dependencies whose version range you increased, or is it a no-op for you as well? |
|
Here you can see that the build with And you can see here that |
|
I will deprecate all versions of |
I guess that means we need to update [edit]
Are you able to reproduce this locally? So far I've been unsuccesful. |
|
Well, as you can see, that build had an updated cabal.project file with an allow newer on all the plugins: 18934e9#diff-b8ed06757045fac949c89f2139a862498ad2b6d1f82c61a31e7c91d6cf0eaa70R62-R67 Which yeah, does show that everything builds and passes tests, but did hide that we forgot to up the upper bound with |
|
Since that means that the CI for this PR didn't actually test the changes in the PR, I'd say that needs to be addressed. [edit] so you verify that these packages are actually allowed, and you test with them. Of course, CI will still not cover all bases, such as the older allowed versions, so you will always need to stay alert and think your testing through. [edit 2] |
6a7dee1 to
079a763
Compare
|
I'm sry that I missed the one bound in Another question that still worries me: this PR marks to fix #3078, but the problem is only fixed with the latest version of Hence, shall we already tighten the lower bounds as part of this PR? |
|
Since #3078 is not a regression, I don't see a need to do that. It worked before, and it still works, it just works a lot better if you upgrade your plugin. But if somebody wants to keep it at the old version and keep stuff as it is, that's also fine, right? For #2784 we will need to do something of course. It seems to make sense to bump the lower bound to the version that is needed for succesful compilation and operation; doing it conditionally seems like a major complication in the API. I'd not do that unless it really serves a purpose. |
The PR bumps
ghc-typelits-natnormalise,ghc-typelits-knownnat, andghc-typelits-extrato the latest versions and introduces some required code changes inclash-preludeto make it compile.Still TODO:
Requires Bump typelit plugins (preparations) #3062obsolete due to Derive new givens ghc-typelits-natnormalise#110Winaccessible-codeorWincomplete-patternsghc-typelits-natnormalise#109Write a changelog entry (see changelog/README.md)Check copyright notices are up to date in edited filesNice to have:
CLogtype family reduction #3078